﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Workflow.Activities;
using System.Workflow.Runtime;

namespace YakShaver
{
    [ExternalDataExchange]
	public interface IQualityAssuranceDataExchangeService
	{
        event EventHandler<AddDefectEventArgs> AddDefectEvent;
        event EventHandler<AcceptWorkItemEventArgs> AcceptWorkItemEvent;
        event EventHandler<RejectWorkItemEventArgs> RejectWorkItemEvent;
        event EventHandler<MoveToProductionEventArgs> MoveToProductionEvent;


	}
    [Serializable()]
    public class AddDefectEventArgs : ExternalDataEventArgs
    {
        public AddDefectEventArgs(Guid instanceId)
            : base(instanceId)
        {
        }
    }
    [Serializable()]
    public class AcceptWorkItemEventArgs : ExternalDataEventArgs
    {
        public AcceptWorkItemEventArgs(Guid instanceId)
            : base(instanceId)
        {
        }
    }
    [Serializable()]
    public class RejectWorkItemEventArgs : ExternalDataEventArgs
    {
        public RejectWorkItemEventArgs(Guid instanceId)
            : base(instanceId)
        {

        }
    }
    [Serializable()]
    public class MoveToProductionEventArgs : ExternalDataEventArgs
    {
        public MoveToProductionEventArgs(Guid instanceId)
            : base(instanceId)
        {
        }
    }
}
